package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.dto.DishDto;
import com.itheima.entity.Dish;

import java.util.List;


public interface DishService extends IService<Dish> {

    void saveWithFlavor(DishDto dishDto);

    //根据id查询菜品信息和对应的口味信息
    DishDto getByIdWithFlavor(Long id);

    //更新菜品信息,同时更新对应的口味信息
    void updateWithFlavor(DishDto dishDto);

    void removeWithFlavor(List<Long> ids);


}
